import Vue from 'vue'
import App from './App'
import axios from 'axios'
import uView from "uview-ui";

Vue.use(uView);



// 解决uniapp 适配axios请求，避免报adapter is not a function错误



Vue.config.productionTip = false
Vue.prototype.$toPage = url => uni.navigateTo({
	url
})
Vue.prototype.$toTab = url => uni.switchTab({
	url
})
Vue.prototype.$goBack = () => uni.navigateBack()

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()